package com.ruoyi.project.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.project.domain.entity.Project;
import com.ruoyi.project.domain.entity.ProjectParticipan;
import com.ruoyi.project.domain.query.ProjectParticipanQuery;
import com.ruoyi.project.domain.query.ProjectQuery;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface IProjectParticipanService extends IService<ProjectParticipan> {

    //分页
    TableDataInfo getPage(ProjectParticipanQuery query);

    //新增
    Boolean addInfo(ProjectParticipan project);

    Boolean updateInfo(ProjectParticipan project);

    //删除

    Boolean deleteInfo(String id);

    //获取详情

    ProjectParticipan getInfoById(String id);

    List<ProjectParticipan> getList(ProjectParticipanQuery query);

    Boolean getPermission(ProjectParticipanQuery query);

    Boolean getPermissionSaleAndManage(ProjectParticipanQuery query);

    Boolean getPostPermission(ProjectParticipanQuery query);

    //获取当前操作人员参与的项目ID
    List<String> getCurrentUserJoinProject();

    List<ProjectParticipan> getSaleRole(Long saleId);


    List<ProjectParticipan> getSaleRoleXs(Long saleId);

    boolean checkSale(ProjectParticipanQuery query);


}
